import request from '@/utils/request'

// 查询考点评分规则列表
export function listProject(query) {
  return request({
    url: '/business/biz/host/project',
    method: 'get',
    params: query
  })
}

// 查询考点评分规则列表
export function listRule(query) {
  return request({
    url: '/business/rule/list',
    method: 'get',
    params: query
  })
}

// 查询考点评分规则列表
export function listYear() {
  return request({
    url: '/business/rule/year',
    method: 'get'
  })
}

// 查询考点评分规则详细
export function getRule(id) {
  return request({
    url: '/business/rule/' + id,
    method: 'get'
  })
}

// 新增考点评分规则
export function addRule(data) {
  return request({
    url: '/business/rule',
    method: 'post',
    data: data
  })
}

// 修改考点评分规则
export function updateRule(data) {
  return request({
    url: '/business/rule',
    method: 'put',
    data: data
  })
}

// 删除考点评分规则
export function delRule(id) {
  return request({
    url: '/business/rule/' + id,
    method: 'delete'
  })
}

// 导出考点评分规则
export function exportRule(query) {
  return request({
    url: '/business/rule/export',
    method: 'get',
    params: query
  })
}

// 获取区域代码
export function areaList() {
  return request({
    url: '/base/area/getSuZhouQuYu',
    method: 'get',
  })
}

// 获取考试项目
export function projectList() {
  return request({
    url: '/business/examProjects/options',
    method: 'get',
  })
}
